minor updates
Changed routine for unique spamfile name.