Some small improvements to the generated html

Please take a look at the commits and decide if you would like to merge them into your repository.