normalized tfs and fixed bug in tfidf