added config to index generator and added more functionality to cli