completely finished. All bugs checked.  Valgrind shows zero problems with memory