examples: use astyle to adopt current code style guide

one step towards an automated CI system that checks for style guide too