To begin with, stop disconnecting the battery as a way to clear codes. Your code reader most likely has a code clearing function - use it! These vehicles do not have a stand-alone IAC (Idle Air Control), but instead use a learned feature for electronic throttle plate setting and fuel metering. Every time you wipe the ECU, you set yourself back a few squares in getting the basic functionality (starting and idling) ironed out.
Begin by cleaning the crud from the throttle plate and throttle body with a solvent dampened rag. Follow the instruction in this TSB.
Begin by cleaning the crud from the throttle plate and throttle body with a solvent dampened rag. Follow the instruction in this TSB.