added ability write packets/data, added writer example/test updated packetconstruction