adding encoder (moving out method from serialout) and renaming DataHeader->Protocol->DataPackageType