Commented more of the code

Lots of comments