Added indexing and basic search
Completed test coverage for main index library