Add documentation for generator functions.