Refactor and addition

Refactored header file reading to a new function, and changed the return
variable for unpacking data. Now returns [x,y] rather than numpy tuples.