add haddock comment for keypair