fix the f**king writeVarint
better, faster and complete readVarint, close #14