Refactored a few things in Main.cs for clarity.
Refactored several things in Main for clarity.