I would check the Throttle Position Sensor IDLe setting:
- http://www.4crawler.com/4x4/CheapTricks/TPS/index.shtml

If that is off, you'll have an erratic idle.