Minor revisions for clarity and checks.
Add code for GWA of first eigenvector.