Fixed bug in error handling during install, improved debug mode for duplicate data...