Added docs for captureWithName()