replaced string with fs.readfilesyn, buffer to strong
added require('fs') for file i/o
added comments to code