Everything now compiles.  I commented out all the serialization stuff for now.  Please uncomment and debug as necessary.