Command line parsing (rudimentary).
Created correct Main object instead of static methods.