Remove debugging middleware
Added end-to-end tests
Added docs and messages