adding namespace to cpp
header namespace fixes, and some compiler errors
more missing namespaces
new & delete shouldnt be in the namespace