Added group name to HTML output, also cast results of total_seconds() as an int