Added a storage abstract factory.
Added a memory storage.
Small tweaks. Improved comments. Adding storage to model.