Fixed Switch: case construct.

Added a bunch of break statements to fix problems with the cases.
Merge pull request #1 from 13122614/Master

Fixed Switch: case construct.