Fixed last problems and made an example.
Now need to test it further.

Signed-off-by: Michel Verbraak <info@1st-setup.nl>