Fixes README formatting, middleware refactoring.