passed
added key copying code if STATIC
added C bindings