fixed assumed working directory when reading par file.
cleaned up debug print statements.