Added gt tests
Move options out of the loop
Header parser in separate method
Buffered parsing
Interesting bug fix - need to create multiple methods. Code duplication will be removed later