Cleaning up code a bit and adding comments and more variables so things are more clear
Cleaning up comments