Updated command prompt to respond to enter = submit, shift+enter = new
line; updated history writer to respond to multiple line input.