Adding return values to linked list funcs