tfidf-based vocabulary filtering and better output viewing