Create ManageCommands.java

Class ManageCommands handles tasks of main thread.