changed getWords, added test_case for reading dictionary files