fixed parenthesis in cp.cpp
improved makefile