Heavily pad out and document memsink.h (ticket #23)