Inline temp in main method

Removed userCommand temp in main method for refactoring