Index management

Finished testing index management functions.