modified to work with full GB fasta headers or with accession numbers only
replaced buggy echo statements with a single command to log all commands