Add documentation for internal functions.