reformat examples and some parts of the code
coding style
Merge pull request #1 from reactphp/missing_RR_implementation

Formatting