added function to process text files in R allowing for stemming