Develop

@zyniq82 have a look.
`diagStr` gets `'#'` set twice. Either

    var diagStr;
    diagStr = '# ' + totalSpecs …

or

    var diagStr = '#';
    diagStr += ' ' + totalSpecs …

or maybe even

    var diagStr = '# ' + totalSpecs …