major changes: a lot of new functions, new data structure

Hi snostorm,

I developed the wrapper to a good usable stage. We are using it in a production environment. The data structure is a bit different but good documented. Feel free to merge the major changes.

Greetings,
Uwe