check required options in definition.cfg + red functions writes to stderr; closes #17