Html reporting with formating

The implemented solution is not very clean. It needs to be refined