styling, variable name changes, change matrix to numpy matrix
add comparator as a function argument for getCentroid
more variable name changes, clean up code for getCanonicalRep