Add documentation.
Checkpoint forwards current state.

As checkpoints are triggered, forward the accumulated state to the next
worker in the pipeline.