jshint
cleanup and doc