add asserts
Merge branch 'master' of https://github.com/jdewasseige/prob_matlab_num