adding boolswitch class
Merge pull request #1 from pseudomuto/boolswitch

adding boolswitch class