Fix documentation and code.