Fixed one character problem
added logging code
put in console.log statement
time displays nicely
formatted date and time