Nbits determination was using 'c' for a signed integer, should've been
'C' for unsigned int.
Merge pull request #4 from wouter/master

Nbits fix