update doc strings and error to include public key