fixed (u)int bounds checking in client API
Merge pull request #88 from opentechinstitute/bounds-check

fixed (u)int bounds checking in client API