PLD: fix syntax errors and style