This is a major rewrite of much of the code, though from the standard rock mag user's viewpoint it should be almost identical. Code is slightly better documented, and the plotting function (RmgARMPlot, etc.), in addition to taking a Rmg structure as an input, can take as input the output of the data curve generating functions (RmgARMCurve, etc.).