doc: add various memory documentation.