Solely use datetime objects for timing

Also added some comments, and a different thing to write to logs when
commands are run.