Energy storage modelling Codes to model energy storage systems, based on https://www.nrel.gov/docs/fy15osti/64641.pdf