I bought a used 740i three weeks ago which ran perfect when i bought it. Passed California smog with flying colors. After about 2 weeks i got a rough bumpy idle and it threw a p0011 code for cps bank 1. Replaced cps,plugs and valve cover gaskets to eliminate oil on plugs. Reset engine light and now have a p1344 code for coil cylinder 2 misfire, still has bumpy idle. Cleaned maf and throttle body and replaced coil for cylinder 2. Idles at 6-700 rpm, runs rough or perfectly smooth at will, cold or hot, maybe the idle control valve? Need advise on what to check next.