new program for stat calcs and running instances of clustering