added mex project and test