adding minimum angle calculation for rotation matrix
implemented transformation phase crystal structure user defined option