Further edit to simple control mode for battery. Results as expected. Now option to either read data from .fcl or TDF files.

Compile, run and test on OS X O.K.