Added more cmd line control functionality and implemented simple command history/recall