Fixed documentation to describe new calibration procedure.   Also fixed infinite recursion in the setbit functions