Remove unusefull debug print
Correct erroneous doctests of memory.rst