Also generate sequence fns for TG.

Improve the generated function's docstrings.