Minor changes.

Now logging max and min word and count.