add mmap demos
add comments
merge