Improved completion. (Now case insensitive).
Added preferences file and created menu items.

Also fixed some bugs with history.
Updated README, updated messages.json
Fixed typo in messages.json