added isMemberOf() method; added close() where i forgot to put it