Here is my changes. I extracted 'WordFrequency', used for Word counting, from TC. Added some test buttons to the layout, and a few other minor changes.
I use several WordFrequency objects, swap in the one desired as needed, create, draw, etc. Could be optimized further, I'll repost if I do any more work on it.