updates linked list with stylistic improvements and more tests