I would suggest looking at the documentation found in Technical Report #61 in
our department series.
http://mayoresearch.mayo.edu/mayo/research/biostat/
The formulas for priors, losses, etc in Gini splitting are such that I can't
deduce them myself from the source code (and I wrote it), but need to have the
document.
Terry T.