A class to automatically save and load configuration from a YAML file