Updates to TfIdf class.