Added YAML support for configs
Added Config class