Add pi function and CCP estimates

Testing chebappxf
I think chebappxf is working correctly now.
Merge pull request #2 from CY-Chan/master

Add pi function and CCP estimates