Added auto upgrading config file. But the Config class needs a serious overhaul