shifted the IndexCorpus class to interface.py