Added code to generate HTML output which gives a better view then pure text