MapHash added, word frequency added