Preparing mex version

Adding files