Reorganized config file loading, palette changing