fix package.decode for messages bug
fix Package.decode bug & optimize
fix variable declare bug
Merge branch 'develop'