List changed to double linked list. Struct node moved to header. ret_type added