MATLAB Library for performing spectral ratio refinement