Add documentation, especially for RModel.