added rudimentary HTML output support