added stdout mex file