Add docstrings for comparators