made usability improvements: added history list, enter key handler, renamed some stuff