- switched from depricated optparse to new argparse module
- allow reading logfile from stdin (e.g. via unix pipe)