added internal documentation to new numbernames method, improvements to Diagnostics