Added list.h and list.c. Changed kos.c to reflect the new library