Refactor Program.cs

make program more readable, editable