Updated some documentation and appeased jshint syntax checker.