Add documentation for key generation.