print num iterations inside untilconverged, fix k-means to max 10 iterations for consistency with lancet version