kmeansstep also sanitized, a minor error with a for= loop fixed, and kmeansstep confirmed working correctly.
kmeansstep also sanitized, a minor error with a for= loop fixed, and kmeansstep confirmed working correctly.

DM-/ML