check engine light flickers on 1997 Saturn SW1

c.e.l. flickers and wouldn't pass smog first time, when i had shop check with obc 2, the codes that came up, and listed 3rd and 4th geares failure. (the transmission does occasionally surge when going into 4th is there a easy way to fix this?

Asked by for the 1997 Saturn SW1