Replaced some console.log statements, part of response to code review comments, see #3.