Packets are written in raw binary directly

Close #4
Merge pull request #5 from Raulmsm/write-binary-directly

Packets are written in raw binary directly