documents and adds example code