added error message in case gzip fails & added calculation of overlap