Added control of debug output and some mask handling.
Merge branch 'master' of github.com:Feuerlabs/gpio