Added timestamp to logging
Added logging to a file