Removed unused import.
Added deletion of temp file.
Added copying of METS into submission doc. dir.
Added error if finalizing incompete/failed deposit.
Fixed issue.
Resolved conflict.