added doc
better describe how middleware works
Merge pull request #1 from wtfil/doc

added doc