Move timestamp to a tempfile

Also catch termination signals to clean up
Rename main script to match program name