factories refactor and serializer factory implemented
Merge pull request #14 from jmg/factories-refactor

Factories refactor and serializer factory implemented