This isn't necessary, could just do a ``lines.next()`` and then check the header. Following this, lines 356, 357, 365 can then be done in a single forloop. This has the benefit of a single iteration over the data (including fishing out eigvals and pct_var). Right now the code is performing at least 4 walks over the data.