adding more docs, and jshint tests