matlab tools for RIVET analysis