Signature verification, fix keypair constructor, cleanup.

I'll look into this and find more information what is most appropriate here. I may have the parameters in the wrong place. (hence, placeholder)