Parent table reduced to one dimensional array. Reconstruct path appropriately updated to support this change. Redundant initializations removed. Comments added.