merged distance related functions

into bindDistance and onApproach
use the same function for either object2pixel and object2object
renamed example pages and updated index