Fixed: adaptor now takes care of the correct initialisation of an es document
Minor refacoring
Merge pull request #2 from liip/serializationFix

Fixed: adaptor now takes care of the correct initialisation of an es document