will now write interim results; improved time-keeping
added checkpoint feature but something is wrong with the job database, will rewrite later