update comments in publickey function