Addition of a unit tests project, bug fixes in the serialization code