Added ability to specify kMeans value via GUI.