Modify List_remove function. Add explanation on code.