Fixed a few memory bugs; importing dicitonary and checking for words works as expected now