Add prototypes; implement sys_cleanup; ccp_test provides more info;