Add basic serialization
Mark all the readonly attributes