Feature/472 convert config to yml

Converts config to Yml, validates it and makes config easier to parse.
Nitpick: I'm not a big fan of single letter variables. I realise that there are 'commonly used single letter variables' like $i or $e.