Removed "using namespace std" lines, cleaned up resulting mess.