As for your idle, check your EGR valve and the IAC (Idle Air Control, which controls the idle). If the car acts like it has a bad idle all the time, check to see if the IAC is working.
The EGR valve will run about $180, unless you can go to a pick and pull (which is what I did) and get it for dirt cheap.
The IAC will run $30-35