finished streamflow, now the tests and bugfixes begin
found, better memory manager, based on streamflow