update varint
use encodingLength instead of dynamicLength
update docs
2.0.0