Added middleware class to documentation.