Move routes configuration to Main
Extracted class to parse command line arguments