Fixed LightningConfig class.

Quite possibly some values can again be put into smaller types, but I mainly copied those from WeatherConfig which Arne recently looked at so most of them should be correct.