Extracted ui; made commands runnable externally.
Fixed minor bug w/ command line parameters