Working eigenvalue solver, prints to file