parse ioctl()'s argument. Fixes #233
proper hex printing when using the -x and -X flags
minor bugfix: int and bool mismatch
Fixing invalid write, older version was not accounting for buffer size limits