Add documentation to the functions.