Added "generateHTML" function

Updated example, and added the convinience function generateHTML.
generateHTML is identical to the generate function, with $indent="<p>"
and $eol="</p>\r\n"