updated to use memory store and updated filename
added transactions