added function to write compute TF.IDF scores to fiels
added output.write_to_file as one of the timed utilities when TIMED is present