fixed function signature in matlab and created setup script