added setOption() and setOptions() for setting options via whitelist
key name fix, keys are now whitelisted