Cleaned up the code, removed redundant comments, and unnesecary code.