added hard link creation functionality for duplicate files.