Fix minor glitches in coverage table

Avoid division by zero
Fix ratio table html
Delete unused local variable
Prefer StringBuilder over string concat
Remove redundant string formatter