Update cp.c

Updated formatting to be uniform. Stripped comments.