Add parameters to pipeline methods, add some missing docstrings.

Also see #4023