Cleaning classes and creating a unified Inverted Index Object class