I cleaned the air flow meter, replaced cap and rotor and ran seafoam through the car. I also tested the TPS and found out it was sticking. The leading timing is now adjusted as well.
What still needs to be done:
-finish checking timing
-install replacement TPS
-check 6 port actuators
-check fuel pressure
-test temp sensor
-test air flow meter
-test ecu
-run codes
-replace air filter (very hard to find)
-change all fluids including tranny and rear
-grease everything
-clean interior