patch to documentation in re.design.mat and update of documentation
functions