add functionality to main function for indexing
Merge pull request #1 from raghvendrasingh/master

add functionality to main function for indexing