remove unnecessary files; change PI to M_PI; switch Makefile to C++11