For the idling problem, it could be a problem with the fuel system. Try replacing the fuel filter underneath the car and see if that helps. Other fuel related issues could be the pump or the screen/filter for the pump (not the fuel filter underneath the car).