adds captions and refs to figures