fix bug if trying to delete nonexistent command
added cmd_info command