Added member? function, started work on set?

Added a function to check if an element is a member of a set. Updated
comments on f function.