Got mmap working
Cleaned up mmap implementation