refactoring local commands. cleaning up. docs.

Benjamin Mako Hill || Want to submit a patch?