redirect stdout and stderr to Pd console
converted most stdout messages to Pd post()