Update documentation and code.