Fix errors and add --format option support.

Current --format option choices include fasta and fasta_cds_na.