Added code to index documents from the command line.