~ Fix mem storage allocation.
+ Add some docs.