fix: encode/decode functions should implement by c for performance reasons.
fix: sub module packaging format has been fixed.