several corrections for the coregistration with diff and adding check of the coregistration