fix example

- add POD
- avoid ambiguous options
- configure Getopt the right way
- fix filename regexp