getHeadNode returns a GedcomTree object
Fixed order of lines with same tag
removeLine, removePath and branchCleanup fix