add comments
add some reflections to demo_mem