rearranged directory structure and added sync functionality for deleting files.