Changes to loading settings

More secure way of handling configs.