Updated and added comments

New comments should help explain what is going on in the code.
I mostly did this because I was bored in class.