Code save for RES (elec) control. Compile, run and test on OS X gives results.
1) improve charge / discharge behaviour of battery. No, no fluctuations are observed
2) add "write to cfg file" of new "*resel" tag for control data file
3) cosmetic / textual changes (various)