Adds middleware documentation