Renamed function slist_tail to slist_get_tail.
Refactored some slist functions to improve readability.