Fixed linked list bug.  Improved debug.