added documentation to the examples