Implemented command infrastructure
implemented command line handling and exception management