Commit before things get borked anymore.
it is at a working state, with a new method of doing things in the works commented out.  Further research has to be do about what centroids to go to