Continued work on result reader mex file