Memory format

First effort in providing a memory format, addresses #3