add index & sample
Merge pull request #2 from nrichand/master

Merge from master