remove unused Index class and replace with sets

some cleanup before the 1.0 release