Added function to check if a string is equal to any member of a list of strings. Added initial handler of valid commands, though an error occurs if command-line-arguments yields an empty list.
Commented out (exit) so that the code can be used with the interpreter.