added history file + changed some keyboard shortcuts to make it more
like emacs