now allows inversion of switch logic
Merge branch 'master' of https://github.com/CampbellGroup/common