reading m-files working