Add output of battery capacity (Li-Ion) to h3k.

Compile run and test on OS X O.K.