added documentation + testing for DistinctBy