Commented all files and methods

Commented everything and moved some methods around to where they made
more sense.