docs: Document how to use onrun + memory_set.