bbb48783e3
Made sure the list_*() API was used whenever possible, rather than relying on the internal implementation. Added comments to the list.c file for documentation.