#253 Verified error reporting and minor changes
to command handling.