some edits/simplifications to saving procedures..added savetext for peak events