Based on PR feedback:
- Fix end-of-line
- Update lib/middleware api docs