Make PChart a class and tighten up access.

Plus stubs for compressed PChart code.