refactoring

* refactoring scanner class
* rewrite to use and simplify option referencing some classes
* package version update
debug.
add method to convert from ip/protocol name to its number, and add tests.