add comment block from MATLAB code to cut_plane and branch_cut functions