Added payload size
Added const for default packet size
Fixed payload size. Added tests.