-- added comments and docs for mmap.h