Thanks for the Gigs recommendation.
I'm not sure if I wrote too much in my original post or if my code really is that hard to read, but I have done all that has been recommended in the last two posts.
Also, my code worked just fine before the auto format.
You can't deny my experience using the auto format function that broke my code (had to revert to previous save).
I appreciate the replies and willingness to support, but I feel like somehow I have not properly presented my case because so far no one has brought up anything new/worthwhile...
Plus if you took the time to review my code, you'll notice I have defined variables and even got the function to trigger when the tilt angle was appropriate. I'm not stellar with comments in my code, so I suppose I'll practice that more.
Thanks again for all your help, not sure how to close this thread, but have a nice day.