Made timestamps being used for file names cleaner so they hopefully don't break in attachments to Windows. Cleaned up modify_record to avoid

Main code rev. 1996
Made timestamps being used for file names cleaner so they hopefully
don't break in attachments to Windows. Cleaned up modify_record to avoid
triggering so many undef warnings.