Fixed the exporting of the initial data.
Added an invalid flag for reading back in the triIndexStart so that I don't mark everything as a leaf node.
Added some crazy debug only error checking, still only partial checks.
Seems to work ok though.