fixed bugs - decode_variable_length_int() and encode_variable_length_int() require little endian formatting