Comments

I updated the code with comments. It may be too general, and if it is let me know so that I can change it, but i think everything is explained pretty well