Refactored retrieval of configuration, and added checks on chargingstation being configured