moved command line class to its own file