added getBatteryPercentage