Initialize switchmode to 0 as default
Merge pull request #66 from ptony82/fix/set_switchmode

Initialize switchmode to 0 as default