FWeinb/CDocParser — pull request #6 by joshwnj (2014-10-15 09:57:17+00:00)
Title: Fix bug in index function

I've added a failing test to show what appears to be a bug in indexing (although please let me know if I've misunderstood the expected functionality).

This can be fixed similarly to how it's done in #5 however it'd be worth keeping the refactoring here so we get the tests for `createIndex`.