debugged regRot function that normalized the rotation vector to 0 to pi. Added codes to control viewpoint, zoom, lighting etc of 3d plot.