fixed jshint errors, added comments
v1.0.1