Complete main function of createPlaneByFiducials