use length of index read from tag0 bam file rather than length of tag in
decode metrics file to derive barcode file, added new tests and test data