some namespace cleaning.

(This is a small PR just to clean some namespace, e.g. avoiding using "using namespace" in the code, so that the global namespace is not polluted.)