Revert "Revert "added html output for testing" and rereverted again"

This reverts commit e831c5c2a68abcb3f62344d779039f6e099268b9.