generate HTML and TXT