Moved mex code. Character inputs for file name now working.