Add middleware explanation in README