Fixing read_whole_problem_file bug  

This pull request corresponds to the read_whole_problem_file pull request for PG.  It also has bugfixes for a corner case PGProblemEditor button.