Wrote clustering main function, helper methods lacking...