EGR codes are commonly caused by clogged up EGR ports which can be cleaned by hand if you dont have compressed air handy. Also check for cracked or loose vacuume hoses leading to/from any of the EGR components. Once you get the intake cleaned up, reset the compuer and some of the other codes may also go away. From my experience, O2 sensors reported lean codes when they were dying.