added more print statements to the logger and the functionality to
format time.