added linkedlist functionality and more in tee.c