Added in a lot of comments to explain what's going on and the beginning of email functionality.
More commenting, isn't this fun?