fix doc directory
improved calibration and tests