major changes to ui

Programmatic command help building
executing command by number
refactored some ugly hacks