Code save.
1) Sorting out of h3k reporting of grid export. Added battery and PV to mode "balance" of function elec_net_load_calc(). Gives plausible results, not tested extensively. Will probably give negative results from tester.pl, as "Grid Import" will likely give different values if PV and/or battery is present in a model. New results should be (more) correct.
2) Replaced calls to elec_net_load_calc() in RES_elec_ctl with code which duplicates function - for some reason, occupant loads returned from elec_net_load_calc() were always zero.
3) Additional inputs to RES_elec_Ctl input file. Framework for reading of grid rate and grid refund files (not tested, yet). File reading logic added is based on "binary file method" found in Fuel Cell code (CETC, FC_components.F and powoc_calc.F). Next step: Generate input files and try reading.

Compile and run with basic settings (file reading not used) gives results as before (OS X).