moved most methods of ContactGenerator to its prototype
documented ContactGenerator methods, renamed nearPhase method to narrowphase