Fixed issue#21: Index Location Configurabilty

I had a hankering for configurability so here's a pull request. It's not the prettiest implementation ever but I couldn't figure out a better way of doing this without changing the API.