Corrected coding style

Coding style uses Google C++ style guide:
changed switch and if-else statement coding style