Delete debugging stuff
Add the template for the production error page
Better formatting
Add debug parameter