minor refactorings
added inverse document frequency calculation to indexer.py