Added rebuild option to UpdateSimulation
Refactored switches into SinglePoleSwitch classes
Implemented switch groups