Read config with YAML, Refactoring .inc to class