You need to first address the ignition coil code first. Any ignition issues will cause emission codes. However, once corrected and reset those emission codes should clear if the pre cats are in good shape. What O2s did you use? I chased my tail with emission codes for three months with Bosch generics O2s. My 2.7 only liked the NTK O2 sensors.