update documentation for middleware
Merge pull request #50 from ryanpon/master

Update documentation for middleware