jshint fixes and docs
renamed ContactGenerator to Narrowphase
docs and code cleanup