Added MongoIndex sources, some refatoring