added TermDocumentMatrix option to switch between frequency count and inverse document frequency