Script now calculates normalized term frequency, idf, and uses them to compute a term score for each document