Signature verification, fix keypair constructor, cleanup.

Style and beauty! test-- and m[0]++ have been swapped. Didn't you say that for loops were bad? :)