Generting gedcom file from a tree representation of family genealogy