better documentation in mex