Added an example module.

Moved example preprocessor implementation to a separate module.