Clean up, sort of. kmeans() was using an unnecessary 'mode' param; dropped it.