Revising command handler

All commands now have a return code (not send to the client yet). Also implemented a more extensive helpfunction.