mexBM works. An example added (it ignores any underlying theory). config2mxstruct probably doesn't handle vectors and matrices, to be fixed