[doxygen] Updated code style guide

* added example for if/else
* added Eclipse code style
* synchronized all examples with the guide

See #617