Work on cleaning up/updating functions in cons.c

Also added some functions to search for an element in a list, and return
either, the element, a boolean or the rest of the list starting with
that element