Improve the validateConf

It will for instance fill in the default values in the config if they're missing.