Append a spiffy timestamped footer line on completion; minor refactoring.