Added choose for root template PIs

Now processing instructions differ based on value of
$outputUndeprecatedEAD3