Updated JavaDocs of ReduceFunction
Minor improvements in comparator tests