-new code to seperate eigendiagonalization, LDOS and wavefunction routines