Added code to check for duplicate copies from loan
added comment