Added index setup, config file download, bug fixes