turns out you need the header on the sam file for express
line length
scan through sam header
check the end of file hasn't already been reached
default number of pairs shouldn't be hardcoded
remove debugging prints