add table angles to tree, fix packing of gain settings