Added comments to memory implementation

Signed-off-by: Lasegers <laurent.segers@hotmail.com>