Clean up code
Use Encode-methods to prepend a hex-string with it's length
Update JSDoc
Fix JSDoc
Clean up code