Had almost the same issue throwing up all sorts of weird codes bogging down cutting out running lumpy misfiring ect.. after striping an replacing every single sensor fuelling system and ignition system with no luck I checked my ecu and it was shagged causing all the issues so have a look at your ecu and also that the wiring hasn't been disturbed. Also it can be an fuelling or ignition problem and something that needs replacing along the line