Add SoC feature

+ Change some definitions (i0 and i).
+ It is possible to calculate SoC (based on ‘i’ well).
Merge branch 'beta'