Merge pull request #3 from myahmad/master

Interface definition and major refactoring.
Create index before population.