made some improvements to code
wrote note about calib code