Added TF.IDF calculation, fixed few issues.