Added reindixing if specified in config file
Added slice specification
Added options for slice specification and reindexing