Added logic to check for deleted files and dicrectories, and for
created and changed files and directories