Fixed setOption() method and created loadConfig() so that options can be set properly