implemented the file modified and created stuff