Fix response helpers
Add directory middleware
Update doc comment