updated plr comments and output