Fixing bitmasking values
Merge pull request #6 from leverdeterre/master

Fixing bitmasking values