Fixed wordcloud bugs

Fixed bugs and matching of message to terms is now a function