Add captions to document