Added a ton of comments

I also changed a few lines of code here and there