major part of overlap matrix, corrected the spin-nelec relation