New function Rrestml
Finished Rclique, Rrestml, & doc