Function has been changed to class. Input of fraction is optional (default is 1). The output of the function is an object with the properties dataRaw (the input data), dataCorrected (the Rs corrected data) and options (a structure containing the input parameters: Rs, Cm, Vhold, Vrev, SR, fraction).