add functions to manage indexes

Hi,
This is my first time contributing to an open source project so please let me know if I'm doing something wrong.