added some documentation to example