Move the ratings into comments section

I'd really like to integrate the star ratings more directly into the commenting section. This would change 2 items:

In the listing of comments, I'd like to display the star ratings that each commenter put under their name.

In the Comment form, I'd like to include the star rating selection.

How can I do either or both of these tasks? What functions do I need to call in these templates?