change util.print to console.log
Revert "change util.print to console.log"

This reverts commit f717975b4910a5e623b7547f3ee2669867c63bb5.
add print function to replace deprecated util.print
Merge pull request #275 from nrstott/master

Replace deprecated util.print function