major changes, word frequency added