Added logging. Outputs a timestamped file which contains the names of all those who are at home