register file deletions; give root directory id 0; fix some bug
merge