added a current working directory to an error message.
added program name and pid in the startup message.