Fix case where PG or RG tag is present on read but not in header.
Fix translation of tid == -1 aka unmapped.
Sort out extra \n in header text.