Fix further TF-IDF bugs.
Formatting and updates.