Filled out memchunk.c a bit.
First rough draft finished. Untested.