Added doc to principal.php