Ability to add custom comparator

- Added ability to add custom comparator for detection of the selected objects.
- Added example for that (the last one).
- Added more info about this feature.