ok , sorry didnt mean to imply you reset codes. but something did.
this ecu can infact clear its own codes.
it can have pendings.
set them a
and clear them.
and you can help by driving lots of diff. gears up to 50mph or so.
there is a printable set of rules for running off the monitors.
The monitors (all but one ) must be all clear in most states or they will fail you.
Some monitors will reset to pending , with a battery power interuption.
but the battery will not clear them, only hides them for a short period.
By hide , I mean just the MIL lamp , anyone with a scanner can see them .
510 is bad TPS ,switch side (or not calibrated )
close throttle , and make sure switch is closed. need wire colors?
that hose , it looks like the bypass hose is missing.
Look at that big metal pipe , in photo jpg above it is #4
i will examine your ploto carefully today.
see that pipe #4 , it is a manifold with many pipes.
the tiny one (one of) is a bypass tube.
it goes to the bottom of intake manifold on many kicks.
examine all hose on that manifold and make sure each goes some where.
I bet not.
510 fix.
TPS testing
the switch must close at idle , or idling will be bad.
you photos are good. that arrrow says it all.
more later