made ctor's protected

The class should only be inherited.
minor changes, added comments.
added rewriter tutorial with basic examples.
created exmaples for rewriters.

1. moved all example files into root example rewriter folder.
2. seperated class used in multiple example into own header files.
3. renamed examples with clear purpose.