just for review

Hi Denny,

This is a first version for serialization. I've tested the serialization output is correct for small examples and can be parsed in C++. Can you review it and give some feedback? Thanks!

changes:
added binary format serialization
updated issuing queries
updated optional fields
removed description of weights

NEED TO FIX:
cardinality of binary
unit tests
more testing
other?