mexIsMember.cpp added; minor bugs fixed