Serializer, Transformer Simplification

simplified the transfomer interface to increase encapsulation and allow
for ease of testing of the transformer in isolation