Fix and make amends to linked list traversals and change 'first' to 'head'.