Hi,
Can you elaborate on the error message you get when writing frames?
As for the 16 bytes, it's actually normal (but should be documented). It's used for internal storage purposes only, and you need not fill them.
All that is necesary is that you allocate a buffer of the size returned by the server and write the frame as shown in the sample code.
HTH,
Dan