Documentation for the MRG MATLAB toolbox