add code for recalibration and use svd for axis and rotation averaging