replace deprecated util.print and util.puts
Merge pull request #126 from olahol/master

Replace deprecated util.print and util.puts with process.stdout.write and console.log