Testing this code...
Cleaned up some of the way the gls was parsed. Still thinking about header parsing. Added a basic integration test for your functions, so that you can compare old data against any new changes, as you make them.