ucm inference working (bugfixes); added matlab code for ucm tree output