Docstring cleanup

Minor cleanups for the doc strings in middleware.

Change-Id: I96058ee05645f03b6d9946f4db73b76b0a368d08
Merge "Docstring cleanup"