Fixed some issues with list.h. I was going to try a more OO oriented design, but I will attempt that later.