Almost ready to use clustering

Creates the clusters, but does not yet do anything with them.
Still need to created the clustered cross sections from the codebook.
Numerous small changes getting ready for when clustering is turned on.