Update TODO
Update shm
Improve io (sync at the end)