added the C helper functions for delta and patch
more work on the signature stuff.