Cleaned up the SaveMod method to use available variables for files and path names.