refactoring of query ranker, generators, language models and page retrievability calculator - example usage in calcpage.py