added failing test of indexing
fixed sequence gap issue in indexer
Merge pull request #6 from joshwnj/index-tests

Fix bug in index function