Fixed errors in readme and updated demo.js (added comments)