refactor process_argv : use list of options and corresponding settings
also test logger and help options
add set_mode
use set_mode
fix coding style : wrap long lines
use assert{True|False}