Code save.
Add control logic body. Not workable yet,  next steps:
- get available information for battery and use in code
- get available information from electrical net and use in code
- set up model and input file to start testing

Compile on OS X O.K.