Add middleware docs