some simple work to remove gcc style
some simple formatting
Full formatting done

NOTE: I will remove switch ... when... otherwise coding style in the
upcoming commit
Reason: It ruined VS formatting in some files