update readme to reflect that you have to import the MemFunc type for this