Thanks for asking. Yes I figured it out.
First off I want to express my frustration with nobody replying.
Not even any guesses.
So, heres what I did.
I was searching the internet looking at tons of ideas and stuff.
I found online this part:
Looking at the picture, I realized that the cam gear can be adjusted.
So I thought maybe it had jumped a tooth.
I remembered when I bought the engine, the motor mound and timing cover had been broke. There was pieces of the timing cover down in the bottom of the cover area.
What it appears to be, was, the crankshaft and belt slipped. The debris caused it to jump a tooth. The adjustable gear above made me realize that the engine cam can be adjusted and it was possible it was throwing me the p0340.
Ultimatly, we thought the tooth wnet foward, but it actually slipped backwards causing it to be advanced about 5 degrees.
So.... there it is..............
The damn timing belt caused me all that work.
In addition, by adjusting the belt by one tooth, it did move the camshaft position sensor closer to teh magnetic pickup on the intake cam.