Fix manage_agents help

Fixed the help output of manage_agents. Also, some minor fixes to
coding style and I removed debug from the switch statement since it is
not used.