Tweak up testWrap: correct the name, reduce redundant computation of sin(ang) and cos(ang).
Tweak up some names, comments and a unit test associated with wrapNear