Added the option to load configuration from a yaml file