Added serialization support.  Now I need to test and debug it.