Fixed Switch: case construct.

Added a bunch of break statements to fix problems with the cases.