the cam position sensor is on the forward driver's side of the cylinder head, right where the valve cover meets the head. it's black and has 2 bolts attaching it to the head. my CAI was rubbing on the connector and had loosened it enough to trigger the 0344 code, the other code was a misfire, and that could be related to the 0344 but could also have been other number of things. i dodn't have any problems now... knock on wood, check that connector though. oh and that connector has one of those red locking tabs on it just so you know.
hope that helps.