document Gini indices and add formulas