Additional comments and refactoring of the main Program.cs file