Added Comments

Commented up the code. Hopefully its clear what everything does now.