Command line interaction

Added command line interaction
moved main functionalities from main method to commandLine class