added lost of linked list stuff to scanner.c