Vacuum leak or dirty MAF, glad we agree!
Check the hose from the intake to the PCV valve, and the fresh air tubes from the valve covers to the intake tube.
The other vacuum lines can leak too but they usually trigger other codes. Press down on the intake to see if you can make it smooth out.
If it runs better after you fix the lean condition but it still seems rough, plugs and wires should fix that.