checks for self loops and cycles in TreeCPD
changed representation of multivariable nodes in TreeCPD and improved docs