Improve the behavior of a few file-related system calls
Small amount of documentation