Added pretty HTML output to debug and development modes