examples: use astyle to adopt current code style guide
Merge pull request #566 from mehlis/examples-astyle

examples: use astyle to adopt current code style guide