updated several matlab wrappers