Adding methods to Corpus, Kmeans, and TextDocument classes.