fixing joining of classes, changed ASIdata to ASImodel
changed the way the join matrix is set