Stepper driver steps not accurate

If your code is too lengthy to post, trim it down. Write the bare minimum sketch that shows your unexpected behavior. Post that.

Going to the mechanic and saying "my car wont start but don't check the battery because I am pretty sure it is good" will get you a funny look from the mechanic and then he will check you battery as the first step.