added an alternate date format (tho incorrect)
now use a logger callback for logging
defined the logger interface