cleaned up a lot of the eigenpair output code