Corrected sign.
Changed initial charge to avoid a warning during before the battery is charged.
Added PV and wind turbine.
Added script.