Started working on the serialization code. Still need to write the extension methods but otherwise it is mostly done.

Started working on the serialization code. Still need to write the
extension methods but otherwise it is mostly done.