ensures config file is sane

Checks that the passed config file contains only allowed values.
Merge pull request #172 from virgil/patch-1

ensures config file is sane