Modified Main class to start GUI by default or use console with a command line argument.