Made the encode and decodeHex methods work properly. And numbers are uint64_t internally now

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>