Added comments for detector functions

Added more comments. Changed the grouping metric to the standard
Euclidean distance.