improved cmdmgr

improved usability and error handling
added almost every API method