Fixed some small issues and tested the memory leaks with assign and delete routines.
There seem not to be any leaks.
However, as with standard pointer management one needs to know what happens when.
One needs to call delete before exit of routines as everything is burried in pointers.