CODE COMPLIANT ENERGY STORAGE SYSTEMS