adding cpp files
adjusting Makefile
dealing with syncs and rsqrts