Added some code ot generate input for word clouds