- use getopt
 - use basename
 - parse only teiHeader