fixed some mmap bugs
fixed mmap_clean by specifying write calls
fixed mmap edge cases
moved releasing locks before freeing frames, minor fix
added beginnings of design doc
implemented lazy loading of code