i am asking on advise for the TRIAL part of the problem.i was hoping to just clean up and then pay fines and avoid court ,but i cant get anyone at code enforcement to tell me if i can do that or not.
It sounds like you've worn out your welcome with Code Enforcement. It's too late to avoid court.
Get an attorney and prepare to pay the fees. Before it gets worse.