moved pldoc intro, added protection for version and working directory at startup to debug.pl