Add option handeling

The lesson 05-script calls goostats with options. goostats was not able
to handle them.