need to save changes to sample, and write a time to status file, and change status.txt to gage-status.txt