Designing and Understanding Energy Storage Systems