added name dialog code, moved 'using namespace std;' out of headers and into source files