Code save.
Add bookkeeping for RES (elec) control input file.

Not compiled, yet.