added a logger, started working on the maintenance timer routines