changed output function to console.log (node) rather than v8.  Also
added comments.