fix part of parseHeader
fix default value of messageID
impelemnt QoS==1 (in progress)