Feature/472 convert config to yml

Converts config to Yml, validates it and makes config easier to parse.
Ok fixed the docblock (added return value) but kept the method name, it's legacy.