rewrote the verification of clustering results.
Currently untested (to late to finish today) and incomplete.

Missing: validation of found clusters vs. generated clusters.

Corrected some typos and minor mistakes on the way.