Add int handling for setconfig, add debugLevel [#307]