gh - incorporate ifelse, clean up functions
gh - make 2 separate pchart functions

One function is for the completion data where multiple lines are
plotted. The other function handles all other pcharts and adds control
limits.

Add global variables.

Temporarily output run time.