Added encoding of integers.
Added decoding of integers.