Added classes for word counting and sorting for more frequent words.
minor improvements and made non public api as private
Minor improvements.
reduced init count