Update RSCodeGenerator protocol and update comments.