change MassPlot class to save macros with a given extension