pChart updated with changes from dakota/pchart plus some other minor fixes