--- a/branches/phpGedView-ca/modules/FamilySearch/PHP-FamilySearchAPI/pedigree.php
+++ b/branches/phpGedView-ca/modules/FamilySearch/PHP-FamilySearchAPI/pedigree.php
@@ -45,8 +45,9 @@
 //set the username and password for familysearch
 $username = '';
 $password = '';
-$url = 'http://www.dev.usys.org';
-$rootId = 'me';
+//$url = 'http://www.dev.usys.org';
+$url = 'https://api.familysearch.org';
+$rootId = 'KLB4-5Z7';
 if (!empty($_REQUEST['rootId'])) $rootId = $_REQUEST['rootId'];
 
 //-- check for authentication if a preset username and password were not provided
@@ -56,7 +57,7 @@
 else {
 	$username = $_SERVER['PHP_AUTH_USER'];
 	$password = $_SERVER['PHP_AUTH_PW'];
-	$client = new FamilySearchProxy($url, $username, $password);
+	$client = new FamilySearchProxy($url, $username, $password, 'JW5J-PMJ8-81JM-P5WT-NBBQ-SPLL-8M7S-VHM3');
 	$client->authenticate();
 	if (empty($client->sessionid)) basicAuthentication();
 }
@@ -69,19 +70,7 @@
 $xmlGed->parseXml($xml);
 //--get the first person 
 $arr = $xmlGed->getPersons();
-if ($rootId=="me") $person = current($arr);
-else $person = getPerson($rootId);
-
-/*
-$assertions = $person->getAssertions();
-$ordinances = array();
-foreach($assertions as $assertion) {
-	if (get_class($assertion)=='XG_Ordinance') {
-		$ordinances[] = $assertion;
-		print $assertion->getType()." ".$assertion->getTemple();
-	}
-}
-*/
+$person = getPerson($rootId);
 
 //-------------------------------------- setup some helper functions
 
@@ -225,7 +214,7 @@
 </style>
 </head>
 <body>
-<h2>Pedigree Chart for <?php print $person->getPrimaryName()->getFullText(); ?></h2>
+<h2>Pedigree Chart for <?php if ($person->getPrimaryName()) print $person->getPrimaryName()->getFullText(); ?></h2>
 <?php printPersonBox($person, 3); ?>
 </body>
 </html>