Update documentation and add example code.