Updated middleware section of docs