fixed jshint warnings. Implemented testing as default task. Adapted readme.