Initial commit of cleanedup matlab code to reproduce figures and statistical results