#176 Some work on MATLAB interface