simplify init in store class
change size and length with bit length
typo