Started working on encodeHex

And reformatted all of the code using clang-format..

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