Feature/472 convert config to yml

Converts config to Yml, validates it and makes config easier to parse.
Ah, changed a lot but I see I still did not append the constant to the string properly. Can you fix it?