Update Nov. 4

- Reverse a modification to cluster_analysis function
- Code format cleaning
-