fixed code hanging on the spectrum calculation. Apparently ad zero energy an integration is done from r to r. Meaning step of 0 large.