copyinstruct() and changes to dllist

Added copyinstruct() and changed dllist remove to return back the
removed node.