Added getTransformRules[]
Added clustering function.