Perhaps a throttle actuator is needed to correct the erratic idle, you may want to have it tested prior to replacing it as it is costly. You may find some DTC's (Diagnostic Trouble Codes) that can be helpful, have the CC/ISC or EA (depending on your equipment) scanned for codes.