revised multiple main() and DViewer namespace problems