Add new function MSRCR

Add new function MSRCR.
Add comments to the procedures.