P0335 is a code for a Crank Position Sensor Malfunction (CPS).
Funny thing happened when my CPS went bad. I had codes P0628, P0469 and P0633 which I have no idea what they are for.
The dealer somehow determined that they were all related to CPS going bad. I guess the dealer has a secret code...