Minor: ignore node_modules
decodeVarInt: throw an error if the arg is not a Buffer instance
encodeVarInt(): check that the argument is a number
Add tests for encodings and decodings that should fail