Output HTML test coverage.
Refactoring and minor updates.