added command parser, cleaned up tests for commands, added preliminary output code