original matlab files from lucia pinto
cleaned up lupeso and ludist a bit
cleaned up more matlab code