updated rmasave.h to accept variable filename