Added debug level logging for all errors produced.
Fixed a bug that was causing duplicate property tags to be deleted.