Harmonized code samples

- comments
- line breaks

Signed-off-by: Jérôme Coupé <jercoupe@gmail.com>