The Great Comment Commit

Adds a boatload of comments to the code so it is more easily understood.