added tf-idf
math and path bug