changed the calculation of the eigenvectors (needs correction still)