Removed superfluous func declarations, renamed printList

printList is now called printAndDeleteList for clarity.
list.h no longer has declarations of deleteList.