Move singleton debug code into diagnostic. Add docs. Remove eclipse project file.