add gitignore
avoid double free in xr_fold
[revert] remove test exec
take into account chunk offset