Config class for parse and write YAML config file