Commented on ways to cleanup the code
Cleaned up the code to make it easier to read
corrected some variable names and curly brakckets to illustrate almond style
This code is missing the ; to end commands but I cant figure out where
This code was a mess. I tried to fix some things but think I am doing more harm than good