added memory store module
utilized memory store module
fixed store length call to use new memory store module