New main to first get document frequency, then compile the results, and finally save the tf-idf values.