Merge pull request #23 from patxu/master

fixed bugs. cleaned tf-idf.