Avoid creating word_freqs outside and passing it around.
Merge pull request #21 from mgiorgio/master

Avoid creating word_freqs outside and passing it around.