memsim: README and tests