Code reformat to PEAR style