cleaned up code and comments more. added command not recognized option