added code to allow users to add words to their custom dictionary and assorted bugfixes