Delayed the plotting till after the accumulation of x, y values: much faster, no crashes
added explanation of parameters
plotting responses ordered in the right way, added a slice analysis of the clustering
automatic addition of color bars