Remove debug flag.
UI bugfixes. Add command line history.