Add documentation for tasks and stages