Fix readVarInt

Fixes #7