further development of matlab wrappers