fixes 922.  Fixed a couple of problems that were preventing loading of old .ixd files
improved logging system so that messages from pd are written to a separate logfile