Final Commit - Cleaned Up Code

Removed unnecessary code, made code much more readable.

Split main method into several submethods.