Added indexer cronable shell script and minor refactorings