added the code to create the output html file