Update Middleware.md

Fixed spelling, formatting and added code for customMiddleware