Updated comments & reorg

Reorganized some segments of code, distributed whitespace evenly
throughout, and wrote comments throughout all of code.