Some more config stuff.
Implemented read/readFile methods.
Implemented config write methods, added some validation messages.