Thank you Wolfgang, great contribution.
I have added a few comments, mainly to memory management, and some spelling/formatting fixes. I found nothing serious in my review. Would be great if you could have a look to them, after this the module should be committed to git master.
Dear Henning, many thanks for your comments - I'll definitely have a look at them.