Improve removal of tags with small occurence.

Now you can specify a percentage of how many tags should be cut off.
Also first try of tf-idf implementation (comment out)