add memory storage methods for data models, refactor naming.