Minor changes to the clustering and SparseNet scripts.