Send packedges user class some protocol
Some fixes and added comments