Refactor Main.scala

- Remove unnecessary semicolons
- Remove unnecessary class definition
- Make MainConfig class more readable
- Make usage more readable and editable