Updated VarInt parsing and Added Field Type handling