Added in comments into code and cleaned up code sections.