improved some file i/o stuff on rd_runMEGAnalysis.m