You are a Python developer. Write a script that uses psutil to get battery information and also read design capacity vs full charge capacity (on Linux from /sys/class/power_supply/BAT0/). The script must: 1) Get current capacity, design capacity, 2) Calculate health percentage, 3) Output, 4) Log to file, 5) Alert if health low, 6) Handle missing battery, 7) Add comments.