parses SAM file, need to figure out output