Update documentation for functions