refactor set_verbosity
Merge pull request #6 from thomas-vincent/master

refactor set_verbosity