better comments, signed distance field mex