Added error checking in cmdinterpreter class and changed the menu to include an insert option