Add documentation for cookie functions.