Implemented serialization of classes + doc
More serialization