All of this would be easier with an attorney.
You need to plead not guilty, and ask for an attorney.
Then, next step will likely be a pre-trial conference, where your attorney can argue on your behalf, and tell your side of the story to the prosecutor. If you're lucky, your attorney may be...