The file you should be looking at if you want to review the code for now is p2pool_v2_with_share.cc I will modularize the code in some time soon...
./build.py --enable-examples --enable-tests
cd ns-3.44/
./ns3 run scratch/p2pool_v2_with_share.ccI will add more to this
may be more info on the simulation what each file does etc