remove dist_angle, refresh_torus_boundaries, use functions in analyze_clusters.lua
remove commented code
use the analyze() function in analyze_clusters