Added a small internal logger.
Improve comments in example.