Config parsing & validation

Currently there is no validation being done on config files despite their being an expected format.