Adds custom comparator.
Documentation improvement