revamped command line interface

nice commandline interface using the `argparse` package.

Since input and output are now more general (i.e. files or pipe etc.) this lead to parts of the code beeing uneccessary.