code: public Peer addPeer(String url, String pem) {
          Peer peer = new Peer(url, pem, this);
          this.peers.add(peer);
          return peer;
      }
docs: Add a peer given an endpoint specification.
  @param url URL of the peer
  @param pem permission
  @return a new peer.