Finished initial implementation of clustering

Fixed some off-by-one errors in array indexing.
Changed threshold offsets to be on the xs grid, not energy grid.
Disabling writes and moving clustering invocation

The read xs and clustering timers are now different.