added command line interface for indexing folder