moved mex files to private
tweaks