update to tester c program

Improved the options handling