#122 improved async writing process; added tests; use generated classes from xsd as model entity instead of self implemented classes.