major changes to InvertedPhraseIndex and other shit