Please Edit your post and wrap your code with


<YOUR CODE HERE>

to get highlighting and preserve formatting.

What specific questions do you have about your code? There is way too much...