reverse function to linked list implementation. cleaned up llist.c