added functionality for loading file of words