closes #6: character matrices now allowed for xm