Added documentation to varint.h and util.h

(with some mild refactoring... also, my editor likes adding whitespace)