If the green key is flashing and the car shuts right off, somethings up with the immobilizer. It might need another key reprogram.
For the idling issues - the throttle body is electronic and when it's messed with, the computer gets confused and starts idling weird until it gets a TPS reset with a special scan tool. This could be your issue so I would check for fluctuating idle when first starting the car.
For the idling issues - the throttle body is electronic and when it's messed with, the computer gets confused and starts idling weird until it gets a TPS reset with a special scan tool. This could be your issue so I would check for fluctuating idle when first starting the car.