cpcap battery: add debug option, cosmetic changes