Fix assigning cps return values to global and static variables

Closes #3.  Thanks to Matthieu Boutier for the report.
Fix deprecated comment about cpc_done