ensures config file is sane

Checks that the passed config file contains only allowed values.