Modified coffeescript and added comments