Streamgraph of term frequencies
Some code cleanup