More bugfixes
Added parent options for the tree decomposition.
Added saving to and loading from file.