Update middleware docs