[FIX] Rename cursor to byteCursor and fix readBits function

Fix problems with readBits function not reading the last bits of the buffer and
causing one-off errors.
[FIX] Rewrite unit tests
[TASK] Add tests for Buffer to BitBuffer convert
[TASK] Add documentation
[TASK] Update package.json version