Patching from Haskell works :D
updated doc and moved the allocation of deltaBuf into the test code (so that
our c tests of the patch code also work again)