(doc) Small doc fixes in middleware.