Fix counters and Hub.switch method
Merge pull request #14 from blackwithwhite666/master

Fix counters and Hub.switch method