fix bug, tf idf, snippet package added