Fixed list destroy to ensure last node was freed and updated list creation for clarity.