Edited Log and DateLog classes. Fixed exceptions and duplicated code