Added serialization reader and writer to core library