Add a basic protocol doc; change several comments.