Fixes gap bug
Fixes some optional fields and CIGAR codes