Sounds like the EGR is not working correctly. If it sticks open it will idle rough. You might want to clean it out or replace it.