CHARGING VOLTAGE QUESTION

Inquiring minds want to know.
I had a bad ground on a newly installed electronic regulator and it over charged, 16-17 volt range, boiled the battery, burned out my amp gauge and burned out the headlamps as soon as I turned them on. Lucky it didn't cause a wiring fire.