Adding initial support for file deletion, although it is incomplete
Fixing incorrect handling of deleted files