created fig captions, make class units and unit size