Fix IDF calculation
Merge pull request #91 from mrksbrndt/master

Fix IDF calculation