Added some comments

Explains what some of the things do.