Feature/472 convert config to yml

Converts config to Yml, validates it and makes config easier to parse.
Nitpick: I'd place the more generic but less used getValue at the bottom of the file and the more specific methods up top.