Formatted code and few changes to the Date and Log utils.