End tour functionality. Also resets the map view when the end tour button is clicked.
Small changes to find homography.
Resolve conflict