added some changes to check for execptions and updated makefile
removed src/cp.cpp and Makefile