Logging improvements

Log everything to a timestamped logfile