* use getoptlong() for option parsing
    * --long alternatives for all existing options
    * added --version option