I've noticed a tiny bug in the reference implementation:
if a sequence has no name, eg. just "AAAA...", the first letter is not read into the sequence.
This is because of the first s.get() in getSequence:
and can be fixed by adding