break printing and fixes to switch
Merge pull request #16 from vapolyakov/master

break printing and fixes to switch