depricated indexDefaults and mainIndex tags

Replace the indexDefaults and mainIndex tags which are depricated with one single indexDefaults tag.