Code cleanup as well as reduction in the size of mrInit.
Code cleanup and addition of filepath reading in loadtSeries.