Update documentation to code