added signed read/write functions to mabipacket