added load dictionary.txt functionality