Update documentation and example.