finished implementation of trees & lists
untested!
some bugfixes