Added logic to delete files and folders. Added collection of statistics