Changed logging from console.log to a logging lib with timestamp, fix #7.