added missing include
added missing includes
changed basic types
added ERROR as state of HtFrameType
added new enum as result of decoding of frames
added magic number as define
introduced new function to encode and decode the new data types for the diffrent frames
added gray encoding
added crc16 calculation (without lookup table)
added ternary to binary conversation