What's up?
Crappy idle is sometimes a real pain to fix. First thing I would recommend is pull the throttle body off and replace that gasket and make sure the new one seals properly. I've actually seen that fix a few problems. Another simple thing sometimes messed up is the throttle cable itself, make sure it's had enough slack to allow the throttle to completely close when nobody's pushing the pedal. Try those two and hopefully that fixes it, if not, see if you can find a good buddy with the same motor and start yanking parts from him to try on yours till you find out what fixes it. It may be the wiring harness, but then again. Seeya.
__________________
Andy - Reinstated
Hybrid Forum Moderator
'06 Subaru Legacy Spec B - Stock, for now
'98 Civic EX - CTR headlights and grill, Kosei K1's, for sale
'90 240SX - SR20DET that will never get installed, project car.